//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.qst.crop.entity;

import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;

public class Intention {
    @NotBlank(
            message = "用户名不能为空"
    )
    private String userName;
    @NotBlank(
            message = "用户名不能为空"
    )
    private String realName;
    @NotBlank(
            message = "地址不能为空"
    )
    private String address;
    @NotBlank(
            message = "金额不能为空"
    )
    private Integer amount;
    @NotBlank(
            message = "用途不能为空"
    )
    private String application;
    @NotBlank(
            message = "商品名称不能为空"
    )
    private String item;
    @NotBlank(
            message = "还款日期不能为空"
    )
    private Integer repaymentPeriod;
    @NotBlank(
            message = "种植面积不能为空"
    )
    private Integer area;
    @NotBlank(
            message = "手机号不能为空"
    )
    private String phone;
    private Date createTime;
    private Date updateTime;

    public Intention() {
    }

    public String getUserName() {
        return this.userName;
    }

    public String getRealName() {
        return this.realName;
    }

    public String getAddress() {
        return this.address;
    }

    public Integer getAmount() {
        return this.amount;
    }

    public String getApplication() {
        return this.application;
    }

    public String getItem() {
        return this.item;
    }

    public Integer getRepaymentPeriod() {
        return this.repaymentPeriod;
    }

    public Integer getArea() {
        return this.area;
    }

    public String getPhone() {
        return this.phone;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setUserName(final String userName) {
        this.userName = userName;
    }

    public void setRealName(final String realName) {
        this.realName = realName;
    }

    public void setAddress(final String address) {
        this.address = address;
    }

    public void setAmount(final Integer amount) {
        this.amount = amount;
    }

    public void setApplication(final String application) {
        this.application = application;
    }

    public void setItem(final String item) {
        this.item = item;
    }

    public void setRepaymentPeriod(final Integer repaymentPeriod) {
        this.repaymentPeriod = repaymentPeriod;
    }

    public void setArea(final Integer area) {
        this.area = area;
    }

    public void setPhone(final String phone) {
        this.phone = phone;
    }

    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }

    public void setUpdateTime(final Date updateTime) {
        this.updateTime = updateTime;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof Intention)) {
            return false;
        } else {
            Intention other = (Intention)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label143: {
                    Object this$amount = this.getAmount();
                    Object other$amount = other.getAmount();
                    if (this$amount == null) {
                        if (other$amount == null) {
                            break label143;
                        }
                    } else if (this$amount.equals(other$amount)) {
                        break label143;
                    }

                    return false;
                }

                Object this$repaymentPeriod = this.getRepaymentPeriod();
                Object other$repaymentPeriod = other.getRepaymentPeriod();
                if (this$repaymentPeriod == null) {
                    if (other$repaymentPeriod != null) {
                        return false;
                    }
                } else if (!this$repaymentPeriod.equals(other$repaymentPeriod)) {
                    return false;
                }

                Object this$area = this.getArea();
                Object other$area = other.getArea();
                if (this$area == null) {
                    if (other$area != null) {
                        return false;
                    }
                } else if (!this$area.equals(other$area)) {
                    return false;
                }

                label122: {
                    Object this$userName = this.getUserName();
                    Object other$userName = other.getUserName();
                    if (this$userName == null) {
                        if (other$userName == null) {
                            break label122;
                        }
                    } else if (this$userName.equals(other$userName)) {
                        break label122;
                    }

                    return false;
                }

                label115: {
                    Object this$realName = this.getRealName();
                    Object other$realName = other.getRealName();
                    if (this$realName == null) {
                        if (other$realName == null) {
                            break label115;
                        }
                    } else if (this$realName.equals(other$realName)) {
                        break label115;
                    }

                    return false;
                }

                Object this$address = this.getAddress();
                Object other$address = other.getAddress();
                if (this$address == null) {
                    if (other$address != null) {
                        return false;
                    }
                } else if (!this$address.equals(other$address)) {
                    return false;
                }

                Object this$application = this.getApplication();
                Object other$application = other.getApplication();
                if (this$application == null) {
                    if (other$application != null) {
                        return false;
                    }
                } else if (!this$application.equals(other$application)) {
                    return false;
                }

                label94: {
                    Object this$item = this.getItem();
                    Object other$item = other.getItem();
                    if (this$item == null) {
                        if (other$item == null) {
                            break label94;
                        }
                    } else if (this$item.equals(other$item)) {
                        break label94;
                    }

                    return false;
                }

                label87: {
                    Object this$phone = this.getPhone();
                    Object other$phone = other.getPhone();
                    if (this$phone == null) {
                        if (other$phone == null) {
                            break label87;
                        }
                    } else if (this$phone.equals(other$phone)) {
                        break label87;
                    }

                    return false;
                }

                Object this$createTime = this.getCreateTime();
                Object other$createTime = other.getCreateTime();
                if (this$createTime == null) {
                    if (other$createTime != null) {
                        return false;
                    }
                } else if (!this$createTime.equals(other$createTime)) {
                    return false;
                }

                Object this$updateTime = this.getUpdateTime();
                Object other$updateTime = other.getUpdateTime();
                if (this$updateTime == null) {
                    if (other$updateTime != null) {
                        return false;
                    }
                } else if (!this$updateTime.equals(other$updateTime)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof Intention;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $amount = this.getAmount();
        result = result * 59 + ($amount == null ? 43 : $amount.hashCode());
        Object $repaymentPeriod = this.getRepaymentPeriod();
        result = result * 59 + ($repaymentPeriod == null ? 43 : $repaymentPeriod.hashCode());
        Object $area = this.getArea();
        result = result * 59 + ($area == null ? 43 : $area.hashCode());
        Object $userName = this.getUserName();
        result = result * 59 + ($userName == null ? 43 : $userName.hashCode());
        Object $realName = this.getRealName();
        result = result * 59 + ($realName == null ? 43 : $realName.hashCode());
        Object $address = this.getAddress();
        result = result * 59 + ($address == null ? 43 : $address.hashCode());
        Object $application = this.getApplication();
        result = result * 59 + ($application == null ? 43 : $application.hashCode());
        Object $item = this.getItem();
        result = result * 59 + ($item == null ? 43 : $item.hashCode());
        Object $phone = this.getPhone();
        result = result * 59 + ($phone == null ? 43 : $phone.hashCode());
        Object $createTime = this.getCreateTime();
        result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
        Object $updateTime = this.getUpdateTime();
        result = result * 59 + ($updateTime == null ? 43 : $updateTime.hashCode());
        return result;
    }

    public String toString() {
        return "Intention(userName=" + this.getUserName() + ", realName=" + this.getRealName() + ", address=" + this.getAddress() + ", amount=" + this.getAmount() + ", application=" + this.getApplication() + ", item=" + this.getItem() + ", repaymentPeriod=" + this.getRepaymentPeriod() + ", area=" + this.getArea() + ", phone=" + this.getPhone() + ", createTime=" + this.getCreateTime() + ", updateTime=" + this.getUpdateTime() + ")";
    }
}
